import request from '@/utils/request'

// 查询配件费设置列表
export function listSettingPartFee(query) {
  return request({
    url: '/vanger/settingPartFee/list',
    method: 'get',
    params: query
  })
}

// 查询配件费设置列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/settingPartFee/listUnion',
    method: 'get',
    params: query
  })
}


// 查询配件费设置详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/settingPartFee/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询配件费设置详细
export function getSettingPartFee(id) {
  return request({
    url: '/vanger/settingPartFee/' + id,
    method: 'get'
  })
}

// 新增配件费设置
export function addSettingPartFee(data) {
  return request({
    url: '/vanger/settingPartFee',
    method: 'post',
    data: data
  })
}

// 修改配件费设置
export function updateSettingPartFee(data) {
  return request({
    url: '/vanger/settingPartFee',
    method: 'put',
    data: data
  })
}

// 删除配件费设置
export function delSettingPartFee(id) {
  return request({
    url: '/vanger/settingPartFee/' + id,
    method: 'delete'
  })
}
